import 'package:cloud_phone_manager/utils/CmdUtils.dart';

class PhoneFile{
  String _path = "";
  String _permission = "";
  String _user = "";
  String _group = "";
  String _createDate = "";
  bool _isSoftLink = false;
  String _softLinkPath = "";
  String _realPath = "";
  bool isFile = false;


  PhoneFile(this._path, this._permission, this._user, this._group,
      this._createDate, this._isSoftLink, this._softLinkPath, this._realPath,this.isFile){
    //获取软链接真实地址
    // CmdUtils.runCommand("adh shell -a -l -F ${_softLinkPath.substring(start)}", (success, error, process, successListener) { })
  }

  String get path => _path;

  set path(String value) {
    _path = value;
  }


  bool get isSoftLink => _isSoftLink;

  set isSoftLink(bool value) {
    _isSoftLink = value;
  }

  String get createDate => _createDate;

  set createDate(String value) {
    _createDate = value;
  }

  String get group => _group;

  set group(String value) {
    _group = value;
  }

  String get user => _user;

  set user(String value) {
    _user = value;
  }

  String get permission => _permission;

  set permission(String value) {
    _permission = value;
  }

  String get softLinkPath => _softLinkPath;

  set softLinkPath(String value) {
    _softLinkPath = value;
  }

  String get realPath => _realPath;

  set realPath(String value) {
    _realPath = value;
  }
}